<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>慧付单到账收入明细</title>
    <link rel="stylesheet" href="${ctx}/static/plug/frozenui-1.3.0/css/frozen.css" media="all">
    <link rel="stylesheet" href="${ctx}/static/css/user/register.css" media="all">
    <script src="${ctx}/static/js/laydate/laydate.js"></script>
    <style type="text/css">
        .content {
            padding-top: 10px;
            padding-left: 20px;
            padding-right: 20px
        }

        .ui-div-content {
        }
    </style>
</head>
<body>
<section class="ui-container" style="margin-top: 0px;">
    <div class="ui-tab ui-tab-revenue" id="tab1">
        <ul class="ui-list ui-list-pure ui-border-tb">
            <li class="ui-border-t">
                <span style="font-size: 20px">注:</span>
                <span style="font-size: 15px" class="ui-txt-info">此处已转账状态未系统装章成功发起时间，具体时间已银行到账为准!</span>
            </li>
            <c:if test="${transDetails != null &&  fn:length(transDetails) > 0 }">
                <c:forEach var="transDetail" items="${transDetails}">
                    <li class="ui-border-t  ui-div-content">
                        <div class="ui-row-flex ui-row-div-action" style="font-size: 17px;">
                            <div class="ui-col ui-col-2">
                                <span style="font-size: 20px;" id="spanChargeDate">${transDetail.chargeDate}</span>
                                <p class="ui-txt-info" style="font-size: 18px;">
                                    慧付单收入:
                                    ￥<fmt:formatNumber type="number" value="${transDetail.chargeAmount / 10 }"
                                                       pattern="0.00" maxFractionDigits="2"/>
                                </p>
                                <p class="ui-txt-info" style="font-size: 12px;padding-top: 5px">
                                    <c:if test="${transDetail.uncharge>0}">
                                    <span style="color:#5CACEE">未结算&nbsp;<span><span style="color: #C9C9C9;">-->结算中&nbsp;</span><span style="color: #C9C9C9;">-->已转账</span>
                                    </c:if>
                                    <c:if test="${transDetail.uncharge==0 && transDetail.charging > 0  }">
                                    <span>未结算&nbsp;--> <span><span  style="color:#5CACEE">结算中&nbsp;</span><span style="color: #C9C9C9;">-->已转账</span>
                                    </c:if>
                                    <c:if test="${transDetail.uncharge==0 && transDetail.charging == 0 }">
                                    <span>已转账</span>
                                    </c:if>
                                </p>
                            </div>
                            <div class="ui-col ui-arrowlink">
                            </div>
                        </div>
                    </li>
                </c:forEach>
            </c:if>


        </ul>
    </div>
</section>
</body>
<script src="${ctx}/static/plug/frozenui-1.3.0/lib/zepto.min.js"></script>
<script src="${ctx}/static/plug/frozenui-1.3.0/js/frozen.js"></script>
<script>
    window.addEventListener('load', function () {
        var tab = new fz.Scroll('.ui-tab', {
            role: 'tab',
            autoplay: false,
            interval: 3000
        });

        /* 滑动开始前 */
        tab.on('beforeScrollStart', function (from, to) {
            // from 为当前页，to 为下一页
        })

        /* 滑动结束 */
        tab.on('scrollEnd', function (curPage) {
            // curPage 当前页
        });
    });

    var paramObj = {
        "transDetailParams": "${transDetailParams}"//查看详细收入流水
    };

    $(function () {

        $(".ui-div-content").click(function () {
            var select_date=$(this).find("#spanChargeDate").html();
            console.log(select_date);
            var hrefUrl = "${action}?params=" + paramObj.transDetailParams + "&date=" + select_date;
            window.location.href = hrefUrl;

        });
    });
</script>
</html>
